<p>
  <b>Title:</b>
  <%=h @movie.title %>
</p>

<p>
  <b>Description:</b>
  <%=h @movie.description %>
</p>

<p>
  <b>Rating:</b>
  <%=h @movie.rating %>
</p>

<p>
  <b>Released on:</b>
  <%=h @movie.released_on %>
</p>

<p>
	<b>User Reviews</b><br/>
	<%= render :partial => 'reviews/review_info', :collection => @movie.reviews %>
</p>

<p>
	<%= render :partial => 'reviews/submit_review', :object => @movie, :locals => {:movie => @movie} %>
</p>

<p>
	<b>Average rating: </b>
	<%= @avg_score %>
</p>

<%= link_to 'Edit', edit_movie_path(@movie) %> |
<%= link_to 'Back', movies_path %>